local RxZip = {}

-- 压缩
function RxZip:zip(zipPath, fromFilePath)
  -- https://helpdoc.touchsprite.com/dev_docs/14/2.html
  -- fromFilePath 只能是 目录/文件夹
  zip(zipPath, fromFilePath)

  -- https://helpdoc.touchsprite.com/dev_docs/14/4.html
  -- fromFilePath ios, 不能是目录/文件夹，只能是文件
  -- local ts = require("ts")
  -- flag = ts.zip(zipPath,fromFilePath)
end

-- 解压
function RxZip:unzip(path, to)
  os.execute("unzip "..path.." -d "..to);
end

return RxZip